package org.locker.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.locker.domain.Withdraw;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.locker.common.excel.annotation.ExcelDictFormat;
import org.locker.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 提现视图对象 lk_withdraw
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Withdraw.class)
public class WithdrawVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 提现ID
     */
    @ExcelProperty(value = "提现ID")
    private Long withdrawId;

    /**
     * 提现类型; self:用户提现, system:系统提现
     */
    private String withdrawType;



    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 提现单号
     */
    @ExcelProperty(value = "提现单号")
    private String withdrawNo;

    /**
     * 微信交易流水号
     */
    @ExcelProperty(value = "微信交易流水号")
    private String transactionNo;

    /**
     * 交易金额
     */
    @ExcelProperty(value = "交易金额")
    private BigDecimal amount;

    /**
     * 交易成功时间
     */
    @ExcelProperty(value = "交易成功时间")
    private Date withdrawTime;

    /**
     * 状态：withdrawing 提现中,withdraw_success 退款成功,fail 用户取消,交易失败(),
     */
    @ExcelProperty(value = "状态：withdrawing 提现中,withdraw_success 退款成功,fail 用户取消,交易失败(),", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "withdraw_status")
    private String withdrawStatus;

    /**
     * 退款备注
     */
    @ExcelProperty(value = "退款备注")
    private String withdrawRemark;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 提现申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 用户名称
     */
    private String userName;
    /**
     * 订单号
     */
    private String orderNo;


}
